#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"
#include "Queue.h"
#include "MyStack.h"


void TestStack()
{
	Stack stack;
	StackInit(&stack);



	StackPush(&stack, 1);
	StackPush(&stack, 2);
	StackPush(&stack, 3);
	StackPush(&stack, 4);
	StackPush(&stack, 5);
	StackPush(&stack, 6);

	StackPop(&stack);


	STDataType data = StackTop(&stack);
	printf("%d", data);



	StackDestroy(&stack);
}

void TestQueue()
{
	Queue q;

	QueueInit(&q);
	int size = QueueSize(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePush(&q, 5);

	QueuePop(&q);
	QueuePop(&q);

	QDataType numfront = QueueFront(&q);
	QDataType numrear = QueueBack(&q);

	size = QueueSize(&q);

	QueueDestroy(&q);
}

void Mystack()
{
	MyStack* mystack = myStackCreate();
}

int main()
{
	//TestQueue();
	return 0;
}


